package com.xrz.sxm.aj.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.xrz.sxm.aj.activity.R;
import com.xrz.sxm.aj.base.AdapterBase;
import com.xrz.sxm.aj.entity_tab.Xwzxb;

public class ZixunAdapter extends AdapterBase<Xwzxb> {
	public Context c;

	public ZixunAdapter(Context c) {
		this.c = c;
	}

	@Override
	public View getExView(int position, View view, ViewGroup parent) {
		ViewHolder holder;
		if (view == null) {
			holder = new ViewHolder();
			view = LayoutInflater.from(c).inflate(R.layout.item_zixun, null);
			holder.Tv_title = (TextView) view.findViewById(R.id.item_title);
			holder.Tv_content = (TextView) view.findViewById(R.id.item_content);
			holder.mImageView = (ImageView) view.findViewById(R.id.item_img);
			view.setTag(holder);
		} else {
			holder = (ViewHolder) view.getTag();
		}

		holder.Tv_title.setText(getList().get(position).zxbt);
		return view;
	}

	class ViewHolder {
		TextView Tv_title;
		TextView Tv_content;
		ImageView mImageView;
	}

}
